#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main()
{
    int n = 0;
    scanf("%d", &n);
    int output=1;
    for (int i = 1; i <= n; i++)
    {
        output *= i;
    }
    printf("%d", output);
    return 0;
}